<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<div class="navbar navbar-inverse navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse"
				data-target=".navbar-inverse-collapse"> <span class="icon-bar"></span>
				<span class="icon-bar"></span> <span class="icon-bar"></span> </a>
			<div class="nav-collapse collapse navbar-inverse-collapse">
				<ul class="nav">
					<li class="active">
						<a href="javascript:location='${pageContext.request.contextPath}'">主页</a>
					</li>
					<li>
						<a href="javascript:location='${pageContext.request.contextPath}/movie/top250'">电影</a>
					</li>
					<li>
						<a href="javascript:location='${pageContext.request.contextPath}/chatroom'">聊天室</a>
					</li>
					<li>
						<a href="#">论坛</a>
					</li>
				</ul>
				<ul class="nav pull-right">
					<c:choose>
						<c:when test='${sessionAccount!=null}'>
							<li>
								<a>提醒</a>
							</li>
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown">
									${sessionAccount.accountName} 的账号<b class="caret"></b> </a>
								<ul class="dropdown-menu">
									<li>
										<a href="#">我的账号</a>
									</li>
									<li>
										<a href="javascript:location='${pageContext.request.contextPath}/login/exit'">登出</a>
									</li>
								</ul>
							</li>
						</c:when>
						<c:otherwise>
							<li>
								<a href="javascript:location='${pageContext.request.contextPath}/login'">登录</a>
							</li>
							<li>
								<a href="javascript:location='${pageContext.request.contextPath}/register'">注册</a>
							</li>
						</c:otherwise>
					</c:choose>
				</ul>
			</div>
			<!-- /.nav-collapse -->
		</div>
	</div>
	<!-- /navbar-inner -->
</div>
